<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* flex没有把flex-wrap属性改为wrap的话，内层容器不会换行，此时设置宽度为100%，相当于把剩下的空白宽度填满 */
        * {
            box-sizing: border-box;
        }

        body {
            background-color: rgba(0, 0, 0, 0.9);
            margin: 0;
            padding: 0;
        }

        .nav {
            width: 100%;
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
            background-color: white;
            justify-content: space-evenly;
        }

        .nav a {

            width: 100px;
            display: inline-block;
            text-align: center;
            line-height: 120px;
            height: 120px;
            text-decoration: none;
            color: black;

        }

        .nav a:hover {
            border-bottom: 3px solid black;
        }

        .icon {
            margin-right: 80px;
        }
        .electric{
            background-color: white;
            left: 0;
            display: flex;
            width: 100%;
            position: absolute;
            justify-content: space-between;
            align-items: center;
          
            display: none;
           
        }
        .electric div {
         
            display: inline-block;
        }
        .electric p{
         text-align: center;
           
        }
        
        .electric img{
            width: 100px;
            height: 100px;
        }
        .nav .l1:hover .electric{
            display: flex;
        }
        .intelligence{
            
            width: 100%;
            display: flex;
            left: 0;
           position: absolute;
           background-color: white;
            flex-direction: row;
            display: none;
           
            
        }
        .intelligence a{
            text-align: center;
            line-height: 80px;
           
            width: 150px;
            height: 80px;
          
            display: block;
        }
        .intelligence .l2d2{
            line-height: 400px;
            width: 100%;
            text-align: center;
          
        }
        .nav .l2:hover .intelligence{
            display: flex;
        }
        .l3d1{
            display: flex;
            justify-content: center;
            background-color: white;
            width: 100%;
            position: absolute;
            height: 0;
            left: 0;
            line-height: 200px;
            overflow: hidden;
            font-size: 40px;
            font-weight: 700;
            font-style: italic;
            transition: height 0.6s linear;
        }
        .nav .l3:hover .l3d1{
            height: 200px;
        }
        .nav .l4:hover .l3d1{
            height: 200px;
        }
        .nav .l5:hover .l3d1{
            height: 200px;
        }
        .nav .l6:hover .l3d1{
            height: 200px;
        }
    </style>
</head>

<body>
    <ul class="nav">
        <div class="icon"><img src="./image/美的图标.webp" alt="" width="110px"></div>
            <li class="l1">
            <a href="#" class="a1">家电产品</a>
            <div class="electric">
                <div class="d1">
                    <img src="./image/冰箱.webp" alt="">
                    <p>冰箱</p>
                </div>
                <div class="d2">
                    <img src="./image/台灯2.webp" alt="">
                    <p>台灯</p>
                </div>
                <div class="d3">
                    <img src="./image/吹风机.webp" alt="">
                    <p>吹风机</p>
                </div>
                <div class="d4">
                    <img src="./image/微波炉.webp" alt="">
                    <p>微波炉</p>
                </div>
                <div class="d5">
                    <img src="./image/风扇.jpg" alt="">
                    <p>风扇</p>
                </div>
            </li>
        
        <li class="l2">
            <a href="#">智慧选</a>
            <div class="intelligence">
                <div class="l2d1">
                <a href="#" class="l2a1">这是第一个选择</a>
                <a href="#">这是第二个选择</a>
                <a href="#">这是第三个选择</a>
                <a href="#">这是第四个选择</a>
                <a href="#">这是第五个选择</a>
                </div>
                <div class="l2d2">内容</div>
            </div>

        </li>
        <li class="l3">
            <a href="#">品牌优选</a>
            <div class="l3d1">
                待开发
            </div>
        </li>
        <li class="l4"><a href="#">企业购</a>
            <div class="l3d1">
                待开发
            </div></li>
        <li class="l5"><a href="#">服务支持</a>
            <div class="l3d1">
                待开发
            </div></li>
        <li class="l6"><a href="#" style="margin-right: 100px;">集团官网</a>
            <div class="l3d1">
                待开发
            </div></li></li>
        <li><a href="#"><img src="./image/图标1.webp" alt="" width="100px"></a></li>
        <li><a href="#"><img src="./image/图标2.webp" alt="" width="100px"></a></li>
        <li><a href="#"><img src="./image/图标3.webp" alt="" width="100px"></a></li>
    </ul>
</body>

</html>